monthsInPeriod

fun monthsInPeriod(start: Int, end: Int): Float

Counts the number of months between start (inclusive) and end (exclusive). Fractional months are determined in terms of the number of days in the last monthly period.